<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="Email.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.BatchJobs.Email" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>




 
      
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
  
    </asp:Content>

  <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
        <table border="0" cellpadding="0" cellspacing="0">
            
            <tr>
            <td>
            
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="90">
                    Job Id:</td>
                <td >
                    <asp:DropDownList ID="ddlJobList" runat="server" AppendDataBoundItems="True" 
                        AutoPostBack="True" CssClass="ddl" 
                        onselectedindexchanged="ddlJobList_SelectedIndexChanged" Width="240px">
                        <asp:ListItem>Select...</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="ddlJobList">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                   </td>
                <td class="pix8" >
                    </td>
            </tr>
            </table>
            
            </td></tr>
            <tr>
                <td  >
                    <table  border="0" cellpadding="0" cellspacing="0" id="details" runat="server">
                        <tr>
                <td  width="90">
                    Number of Days:</td>
                <td >
                   <%-- <asp:TextBox ID="txtNumberOfDays" runat="server" CssClass="txtbox4" 
                        EnableViewState="False"></asp:TextBox>
                    <cc1:NumericUpDownExtender ID="txtNumberOfDays_NumericUpDownExtender" 
                        runat="server" Enabled="True" Maximum="365" Minimum="1" RefValues="" 
                        ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag="" 
                        TargetButtonDownID="" TargetButtonUpID="" TargetControlID="txtNumberOfDays" 
                        Width="0">
                    </cc1:NumericUpDownExtender>--%>
                    <table border="0" cellpadding="0" cellspacing="0"><tr><td>
                    <asp:TextBox ID="txtNumberOfDays" runat="server" CssClass="txtbox4"></asp:TextBox>
                            <cc1:NumericUpDownExtender ID="txtNumberOfDays_NumericUpDownExtender" runat="server" 
                                Enabled="True" Maximum="360" 
                                Minimum="1" RefValues="" ServiceDownMethod="" 
                                ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="txtEverydown" 
                                TargetButtonUpID="txtEveryup" TargetControlID="txtNumberOfDays" > </cc1:NumericUpDownExtender>
                         </td><td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr><td><img id="txtEveryup" runat="server" src="../images/top_arrow.jpg" /></td></tr>
                                <tr><td><img id="txtEverydown" runat="server" src="../images/bot_arrow.jpg" /></td></tr>
                            </table> 
                         </td></tr></table>
                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtNumberOfDays">*</asp:RequiredFieldValidator>--%>
                    <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtNumberOfDays" ValidationExpression="^\d*$">*</asp:RegularExpressionValidator>--%>
                </td>
            </tr>
                        <tr>
                <td class="pix8">
                    </td>
                <td >
                    </td>
            </tr>
            <tr>
                <td  valign="top">
                    Email:</td>
                <td valign="top">
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="txtarea1" MaxLength="1000" 
                        Rows="3" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtEmail">*</asp:RequiredFieldValidator>
                    <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtEmail" 
                        ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$">*</asp:RegularExpressionValidator>--%>
                </td>
            </tr>
                    </table>
                    
                </td>
            </tr>
            
            <tr>
                <td   class="pix8">
                    &nbsp;</td>
            </tr>
            <tr>
                <td  >
                    <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn" 
                        onclick="btnSave_Click" onclientclick="validationSummery();"/>
                </td>
            </tr>
            <tr>
                <td  >
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                </td>
            </tr>
        </table>
    
    
       </asp:Content>